const getters = {
  sidebar: state => state.app.sidebar,
  size: state => state.app.size,
  device: state => state.app.device,
  dict: state => state.dict.dict,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  token: state => state.user.token,
  level: state => state.user.level,
  templateId: state => state.user.templateId,
  tenantId: state => state.user.id,
  tenantParentId: state => state.user.parentId,
  tenantName: state => state.user.tenantName,
  isSuperAdmin: state => state.user.id==0,
  avatar: state => state.user.avatar,
  name: state => state.user.name,
  userId: state => state.user.userId,
  nickName: state => state.user.nickName,
  deptId: state => state.user.deptId,
  type: state => state.user.type,
  deptName: state => state.user.deptName, // 部门名称
  introduction: state => state.user.introduction,
  roles: state => state.user.roles,
  permissions: state => state.user.permissions,
  permission_routes: state => state.permission.routes,
  topbarRouters:state => state.permission.topbarRouters,
  defaultRoutes:state => state.permission.defaultRoutes,
  sidebarRouters:state => state.permission.sidebarRouters,
}
export default getters
